var validate ={
		 
		readURL : function (input)
		{ 
			var docObj = $(input);
			docObj.attr("id")+"_show"
			// var docObj = document.getElementById('GrzlHkb_file'); 
			 
            if (input.files && input.files[0]) { 
 
                var reader = new FileReader(); 
 
                reader.onload = function (e) { $('#'+docObj.attr('id')+'_show').attr('src', e.target.result).width(200).height(150); }; 
 
                reader.readAsDataURL(input.files[0]); 
 
            } else { 
                //IE下，使用滤镜 
                docObj.select(); 
                //解决IE9下document.selection拒绝访问的错误 
               // docObj.blur(); 
                window.parent.document.body.focus(); 
                var imgSrc = document.selection.createRange().text; 
               // var localImagId = $('#'+docObj.attr('id')+'_div');
                var localImagId = document.getElementById(docObj.attr('id')+'_div');
                localImagId.style.width="150";
                localImagId.style.height="200";
               //localImagId.width(150).height(200); //必须设置初始大小 
                //图片异常的捕捉，防止用户修改后缀来伪造图片 
                try { 
                	
                	localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=bEnabled,sizingMethod=scale)"; 
                	//,src="+imgSrc+"
                	//	localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").sizingMethod = "image";
                	//localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").sizingMethod = "scale";
                    localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc; 
                    
                } catch (e) { 
                  //  alert("您上传的图片格式不正确，请重新选择!"); return false; 
               	 
                } 
               
                $('#'+docObj.attr('id')+'_show').hide(); 
                document.selection.empty(); 
 
            } 

        }  

}